ex5 of MPI excercies