dividing classes into parts