16 and 17 done for lecture7