First thing to fix is the enum and the new method getNumberOfChildren