Creating my own text editor