Add a struct that wraps a writer