Begin to Implement DocumentFactory class.