move selection of minimize method from minimize function to minimize method
working model with no params
update models to use new Model class