example with output