method to save the file is done. We just need to send in the text and the title, then if we don't send in the class name, it will find the ongoing class