Add defun snippet