Implementing the Actor functionality by inheritance