rprog006 assignment 2