director needs a callback module (like OTP supervisor).
In callback module you should export function init/1.
What init/1 should return? wait, i'll explain step by step.
-module(foo).
-export([init/1]).
init(_InitArg) ->
{ok, []}.
Save above code in foo.erl in director directory an...