An Introduction to Catastrophe Theory