rprog-008 - assignment 2