added HW9 and 8