added lineNum property
stuck on what to do for error handling
somewhat have arrays