Provides a method which sets instance variables with names of dependencies and as value the dependency itself