Completed rprog-006 assignment 2.