output/Wrapper: new helper class
output/pulse: move code into the struct