add save and load method in class configuration in main.py