adding variable scope exercise