Defining the inputs parameters and other variables