Programming assignment 2 : rprog-005 submission