Programmatically specifying the schema