rep for coursera's data science rprog006 assignment 3