added lecture notes 12-14