Solution to the first part of HW3 added.