UPDATED PAPER.PY