lecture 5 nearly completed