Added solutions for problem number 4.