IoC example