Completely revised problem 3A. Should be the correct version now.