implemented basic model building