Option 1 (change of base) finished. Added in useful functions.