model building and solving - DONE