Implementing the Actor functionality by composition