inject will work for class methods as well