I couldn't see where you used `@scores` later... I think a map then inject might work:

```ruby
scores = @movies.map{|m| m.score}
scores.inject(:+).to_f / scores.size
```

And of course, this is where ruby excels at one-liner-golf

```ruby
@movies.map{|m| m.score}.tap{|s| s.inject(:+).to_f / s.size}
```

Or:

```ruby
module Enumerable
  def average
     self.inject(:+).to_f / count
  end
end

@movies.map{|m| m.score}.average
```