Successfully override Dollar.equals() method.

Now we have generalize Dollar.equals() method.