HW4.2

Second part of HW4