Add schemas code

Did the compiler warn you about incomplete pattern matches?