R_prog_lang Programming Assignment 2