implemented class parsing