compiling but not working template of actor model