adding Actor constructor and a couple of functions for the constructor