Step 8: Build the Y Function 1