made a function to split the input, getting started on the execv part with the children