Exercise 10 from ALG1
Errors corrected
Exercise 12 from ALG1