Add equals method.