added lecture notes 8 to 11