creating the paper generation script