solve by clssification