Lab of part11 in R & other misc stuff