minor name refactoring
integrating Shing's examples
var
var
var