Solution and tests for 1-1.