add solution to Q4