added in source code for the three parts of the editor