I'm also having trouble with the PDF function