HW5 and HW8