Adding a `to_a` and a `replace` method