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