added main class template