Building up an object tree