Solution for exercise 1.02.
solutuon for 1.03 w/o tests.