How to use deep learning to write Shakespeare