See Problem 4.23
exr:activities-program
