first part of HW4