continued work on problem 1