HW3-Three Parts Solved