Exercise 8 of Lab1