Building Functions from Applications Writing Mathematical Models