add local variable and function samples