Added is_equal method