modified exercise_boolean.py