Second homework done.