commit #2 for R-prog009 programming assignment 2