fix syntax erro
add variable scope examples