added old vs new example so gloabls can be seen