getChildren functionality implemented