Continue solving problem 8