Defining the geometry and model