module way of dependency injection