code

setting up the code with vars and a few needed functions