work on lecture 7