Zaslat SMS: Calculus of variations with applications to physics and enginnering