basic class parsing