import pickle


class DataClassIO:
    def save_to_disk(self, obj, filename):
        with open(filename, 'wb') as f:
            pickle.dump(obj, f)

    def load_from_disk(self, filename):
        with open(filename, 'rb') as f:
            return pickle.load(f)