Create Pattern class