use createContentInContainer to create objects