move classes_necessary_attributes and classes_recommended_attributes into the classes