Add pattern book implementation.