add variable boxSize and defines value as function calcBoxSize to calculate the box size, return the value, and print out the box size