finished the depth ordering example