Start to implement PatternBook.