Added create_input function

V vector created.