added alternative depency injection example