working on lecture 6