4.35. Using Sedgewick's graphics API