added functionName field to Node class