Formal Specification and Synthesis of FDI through an Example