added equals and gethashcode to currencyclass