how to write a Hinge profile