Created inj_method within Ruby's Array class