Added prototype for the getChilds function