started with implementing the save and load function