Add sample code for Hub pattern