Add def function to support variable definition