Design and manufacturing of dies