program for doing some nice math calculations