lecture 5 final