how to write a design file