Added scala implementation of Executor.