answered 7 and 8, added split_digits to integer class