Redi2 programming exercise.