added inject method and rspec test for passing a symbol
added inject method and rspec test for passing a symbol