implemented actor creation and handling of messages