lecture 17 and lab 6 linked