add soltion to Q3.7