Add basic class functionality.