Second homework for internet programming course