now we can accept variable length input instead of just a single line