Adding solution for 40