Implemented basic class system.