Outfun function

Create a new output function