docs. introducing factory injection