L.2 prob 5 correction per Matt