Fixed method getChildren() to return List instead of creating array