An example of how to use the Simple Factory design pattern.