figuring out logical operators for homework