Resolve issue#5: Child prints median