Exercise 2 on lab 7 done