Second Homework Assignment for HW2