HW9 (work not finished)