Simple IoC example for /r/programming