Made functions in LineNumber.cpp

I'm not sure if i need to say this.next->addLine(&line) and
this.next->print().  I just left it as next->addLine(&line) and
next->print(), but i'm not sure if this works.