added solution to Q8