Changed the logIn and logOut methods. Now the favorite list can be saved
into a file and be fetched from the file.