beginning the script with input and output