How To Write A Displacement Function