project2 boolean arithmetic