Initial commits of supplied R scripts for Chapter 2 and Chapter 3