I won't be answering this question, but as a regular poster, my suggestion is to mark using comments what lines 17 and 19 are, and maybe give the actual text for the two errors you mention are emitted.
Not everyone remembers the error messages from the numbers, and with how the forums can mangle whitespace, it can be hard to determine what lines are what.
Also, if you are posting code, try using the code block. In the toolbar above your post, where the bold italic and underline things are, there is a button to the right of the HTML with angle brackets. This will allow you to put code in your post easier.
This is a signature. Any samples given are not meant to have error checking or show best practices. They are meant to just illustrate a point. I may also give inefficient code or introduce some problems to discourage copy/paste coding. This is because
the major point of my posts is to aid in the learning process.