programming assignment 2 r course