Add all code from stanford.