working on lecture 17