Changed program to not record line instead of recording x in the list.
Removed old unneeded parts of code