modified setDenomination() to assign a value instead of increas it