Completed auto define basic class.