Created Pattern class and Schema class