Code from IoC Container Chat