stuff for 2^n part 5 (my take) | ScratchStats