Been awhile; I'm a little rusty. Anyway, here's a math lesson along with a small program to accompany it.