transducer example from gad class by Dr. Thomas Fernandez