Some example code from my graduate school studies.