Assignment 2

commit according to assignment 2 for r programming(online course at
coursera)