Can be shortened
```ruby
@nodes.inject(0) { |sum, node| sum + node['progress'].to_i } / @amount
```