Exercises from Coursea ml-006 and an exercise to reimplement the programming assignments in R