Some sample exercises in R