Pošljite SMS: Calculus of variations with applications