added comparison operator

added comparison operator