assignment 2 for rprog-007, add comments