Example of how a transducer works in CS