Solution to Dynamic Method Calling Exercise