Create basic class from table