PA1 Rmd Code Updated