First version of Exercise 13
Corrected small mistakes