commit of question 2 practical 3