restructuring the calculate fn to not accept any stacks and refer to the static main attrs directly