Added the coin problem