reference code example