The Monge-ampere Equation and Its Applications