[fix #5] create fiar module

the type ``state`` is actually defined inside this module, not in ``fiar``