Generalized character slicing a bit.
Formalized a class for lines and added the start and end range.