private Object deserialize() throws IOException, ClassNotFoundException {
        FileInputStream fileInputStream = new FileInputStream(storagePath);
        ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream);
        Object restoredObject = objectInputStream.readObject();
        return restoredObject;
    }