added basic class define support.