this method works, but you could write it in a simpler way using the `select` method.

You could replace the entire contents of the method with:

```ruby
@books.select do |book|
  book.status == "available"
end
```