Console based text editor written in Scala