Remove equal method

Remove equal method and modify equal functionality in extended class Money.