Added a method to write a file of the user's classes

method is called writeUserSave