First part of HW2