Home-made IoC