edited upto mutliple scope
edited upto access global variable
Edited upto access global variable