Pošljite SMS: Elements of dynamic optimization