Αποστολή με SMS: The Inverse Problem of the Calculus of Variations