Adding calculate coins problem