Code to go with dependency injection presentation of runar bjarnason