Factored out Out class (and remaned it) to Write