add isPertinent method and tests