Coursera R Programming Course - Assignment 2 (work in progress)