Implement some reference code.