fixed sample code for booleans section