classification depending upon classes