code to story transformer