understanding how to use the AND operator