class problem solved