updates to week 08 code