adding examples for container.inject and some other examples refactoring