Small modification.
implicit executioncontext at function definitions. Everything compiles finally.