Completed assignment R source.