basic working text editor