Converted to Rspec
implemented Array#where