RProg Assignment 2 submission 2014_06_22