first snippet: global variables in qml
first snippet: global variables in qml