r.1, prob 3 correction