Final part of HW3