worked through Lecture 9 assignments