FCA stuff coded in C