beginning assignment 6, implemented handling for line endings and line continuations