updating template model class and utest added