solved up to exercise 8 from numeral systems