writing which gives formal expression to a legal act