working on lecture 3