started part2 of assignment 1 of R Programming