g still not tested
ugly_number done