UnitFn is now a Function and PairFn is a BiFunction. This was not the
case before because Eclipse couldn't handle it. Now it works with
Eclipse Luna. The Demo now has much more code.