Add schemas code

You are mapping across a set so `toSet` is superfluous.