solved exercise 1-13
documented solution for ex1-13