Implement logical and and or operators.