This is the finished assignment 2 for R Programming