Add schemas code, second attempt.

the type annotations aren't needed.