created classify method without using legs in consideration