adding model data members and methods. created test class.