adding in equality test, fixing equality method.