Assignment 2 - R Programming (v2)