i re-implement .inject for week 4 friday challenge