#11 changing the base algorithm