#330 added children function. Still working on calculating depth