getChild() function for all objects added