add solution for Q7