add solution to Q3.5