modified __eq__ method to return False if compared to some other type of variable