basic ioc example