can handle an unknown amount of numbers