format the class