addedin first refactor
pulled out model creation so we can do tested checks