Destructuring problem

Tell us what’s happening:
I try to solve this challenge but it replies that I have not applied destructuring method. please help.

Your code so far

const stats = {
max: 56.78,
standard_deviation: 4.34,
median: 34.54,
mode: 23.87,
min: -0.75,
average: 35.85

// Only change code below this line
const {max, min} = stats;
const half = (stats) => (max + min) / 2.0; 
// Only change code above this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36.

Challenge: Use Destructuring Assignment to Pass an Object as a Function’s Parameters

Link to the challenge:

The challenge is asking you to use destructuring on the function parameters.

Here is the example code:

const profileUpdate = ({ name, age, nationality, location }) => {
  /* do something with these fields */