Add tie and pattern usage example.