adding R code for tables and figures.