child now prints the results of median and parent prints mean.