example 11-2: a simple supervisor