Completed ex5.1 with questions