I don't we need the unless node.nil? @first and @last will be nil either way. I think it's safe to just say:
```ruby
@first = @last = node
```
Let me know if I'm missing something.