code example error in GETTING_STARTED.md fix

error due to incorrect use of instance variable fixed by use of closure