formating class