5

Changed "lastLine" to "prevLine" in order to increase clarity.