modify equal method for comparing classes of objects

modify equal method for comparing classes of objects (Dollar and Franc). Remove equal method from Dollar and Franc both classes.