base modeling program structure