major classes defined and cleaning of data