Override equals method in Currency class