added additional practice with var scope