dependencies injection using array