Simple IoC made to better understand IoC patterns