added measureDynamism method with custom length