1.03b version rprog-assignment2 from sjchan-ds