added usr input, istringstream, and input into array