Finished first draft of stat2.py.