pared down prototype of example