Defining The Objective Function and Variables