dividing by classes