Adding saving and loading data in JSON format