Adding the rest of second homework.