divide into classes