continued working on problem 4...