added the remainder of lecture 6 and lectures 7 and 8