Text this: A Student's guide to lagrangians and hamiltonians