add solution for 3.1