Welcome to LQ
Please review that link.
Not to say that admitting this is an assignment makes it an unacceptable question.
A little bit more descriptiveness about where you are and what you've tried versus just citing the link where you grabbed code from. Saying that you're held at "the following line" and then just citing log text is insufficient.
Imagine that you brought the whole setup into your professor for help and how you'd demonstrate to them what you've done and where you're at. Not as a pass/fail graded time, but really for help from them. And consider that if you've just done one level of sort of tried to run things and it's rather insufficient, then the professor is going to look at you askance and ask what else you've tried. I'm asking that of you now and I'm not your grader. I'm not looking askance though, just saying that your post here doesn't really give a good set of background information to enable us to help you much.
I'll give you excellent credit for choosing the correct forum.