worked through docs on globals