example illustrate injecting objects to another object.