fixes to lecture 8, added lab 3