Second homework, corrected mistakes