Add schemas code

Any reason why you use Array here? The standard scala collection type is List.