exercise 22: colored indexed cube