An introduction to programming with Mathematica