Finished lecture 18 and exercises