create cmd-line script
encapsulate model logic
model api endpoint