Final Math model