understading enums and childs