Program Assignment 3 R Coursera