P1007 Solved!