how to write a deck