implemented is_comparator and is_assignment methods