http://www.math.ubc.ca/~pugh/thesis.d/masters.thesis.pdf