Creating my own method that does exactly what the inject method does without actually using inject