Defining $children as a public variable

Defining $children as a public variable (it was previously defined on-the-fly)