This is my first attempt at committing my solution to Assignment 2 (rprog-002).