rprog-004 assignment 2