add solution for Q2.6