implemented class parser