Extract basic classes in common lib