program to use a class where member function is defined in the class.