Enviar por SMS: The art and theory of dynamic programming