Main class template added