Problem 3 solution
Solutions for problem 4 and 5
Solution for problem 6