Added some commentary about factory patterns.