1.02 version rprog-assignment2 from sjchan-ds