brt_fit.R file added