Added functionality for Ruby Arrays