Started solving problem 7