Writing to memory

It can be done. This is left as an exercise to the reader. Check your documentation.