working on lecture 8