added fields.c file