Example save and load function for Settings class