Copied from Will Logan's version of Math 20-1 Sept. 2014.