My modified version of the references originally given by Daniel, to make them more internally consistent