dak R June 2014 ProgrammingAssignment 2