Schema Generation
schema generation code tested