Updated text editor homework