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