concept some time in category functional programming
appears as: some time

This is an excerpt from Manning's book Grokking Functional Programming.
Your task is to implement each of the 4 following requirements so that their design is good enough to accommodate required changes. Make sure each solution uses a function that returns another function.