class parsing