```ruby
class BoundingBox
  attr_reader :x, :y, :width, :height

  def initialize(x, y, width, height)
    @x, @y, @width, @height = [x, y, width, height]
  end
end
```

Use a Struct for BoundingBox
user
```ruby
BoundingBox = Struct.new(:x, :y, :width, :height)
```
assistant