updated boolean exercise