1.03d version rprog-assignment2 from sjchan-ds