a model of a small machine with a flag