Rewrite the inject method