Formal coding model