a diagram of a device