Recode my_node to allow more than two children, also make getChildren function