First submission for Coursera R class.