Solving exercise 1
Solving exercise 2
fixed and tested problem 3
Tests for Challenge 4