working on lecture 27