a = 1

foo = ->
    a = 2

    bar = ->
        a = 3