Adding an interface to the client and also an implementation class of it. Further modified the Main class by adding a sample usage of the client.