More work on HW 8