lab4: exercise5 done