actor model program with c++11