Played around with declaring variables in and outside of a function