partially correct solution to 1907