Assignment 2 for rprog-007