public Model(Group root) {
            me.setFill(Color.YELLOW);
            x=20; y=20;

            this.children=root.getChildren();
            
        World w;
        try {
            JAXBContext jc = JAXBContext.newInstance(World.class);
            w = (World) jc.createUnmarshaller().unmarshal(vijf.class.getResource("Wereld.xml"));
        } catch (JAXBException ex) {
            throw new RuntimeException("JAXB:" + ex);
        } 
        
        for(Building b : w.getBuildings()){
           buildings.add(b);
           children.add(b.getShape());
        }
        
        for(Person b : w.getPersons()){
            persons.add(b);
            children.add(b.getShape());
        }
        
        for(Item b : w.getItems()){
            items.add(b);
            children.add(b.getShape());
        }

        children.add(me);

    }