endl instead of \n
updated pdf