mapping functionality to wireframe