Create bg_model.m