format the classes