Function definition genrator