fixed bool b assignment in question 2