Second homework, added console.assert
Second homework, added console.assert