Last part of HW3