basic template for classTrain