Added improved solution to Q10