Create ec.c

Buggy still