Updated DependenyInjection sample