Implemented saving and loading data