Understanding the scope of what to calc and setting up first vars