R programming assignment 2 done

My solution to R course assignment 2