completed program assignment 2 coursera r programming