You can also implement this by placing the variables in the function, it will give you an opportunity to bring them anywhere.