My implementation of ED text editor