simple class object and member function program