Create class.cpp

definition of class and functions