i am still confused by the function, so I just complete one function.