Updated model.c