now the output from andrew's code is the same.