Create a new class to wrap classes which contain two methods.