Populate array from user input