example demonstrates how to connect various components of the astateful framework.