Using the IoC container