adding model logic/formula