fixed style code for classes