first version of C files - implemented at the mid of night