Move the code of the notepad to a separate file