Added printFunc to print a function defintion