made the line editor into a class