Add schemas code

typo should be `histogram`.