added ability to inject instances
Merge pull request #5 from imdoroshenko/instances

added ability to inject instances