update lectures 16 and 17