Custom implementation of an dependency injection container