Assignment 2 Rprog