The composite operator Method for impurity models