example using w.Write()