Second homework, corrected