object dependency example