public ArrayList<Layer> load(String path) {
        //to-do
        ArrayList<Layer> itemList = new ArrayList<>();

        try {
            FileInputStream inputFile = new FileInputStream(path);
            ObjectInputStream inputObject = new ObjectInputStream(inputFile);

            Object item = null;
            while ((item = inputObject.readObject()) != null) {
                if (item instanceof Layer) {
                    itemList.add((Layer) item);
                }
            }
        } catch (EOFException e) {

        } catch (Exception e) {
            e.printStackTrace();
        }
        return itemList;
    }