Parent now waits until child to finish and then to print mean.