made template for rest of classes