Create weight.c