Rearranging the Material class again to make it easier to get the PDF