bd.c model written