Coursera: Programming Assignment 2 (rprog-005)