solution for programming assignment 2 on "R Programming" course