adds base 4 calculator
refactor base assignment