Added main class template