This class can solve the coin change problem for a given amount