Cla// Wrap up the following code into an object
Problem 1