Exercise 5 on lab 8 done