First part of the mult_comm exercise.