update basic class template