예제 1)

<aside>

Image a company of theatrical players who go out to various events performing plays. Typically, a customer will request a few plays and the company charges them based on the size of the audience and the kind of play they perform. There are currently two kinds of plays that the company performs: tragedies and comedies. As well as providing a bill for the performance, the company gives its customers “volume credits” which they can use for discounts on future perfor-mances—think of it as a customer loyalty mechanism. The performers store data about their plays in a simple JSON file that looks something like this: 이 이야기는 다양한 이벤트에서 공연을 하는 연극단을 상상한다. 고객은 몇 가지 연극을 요청을 하고 회사는 공연하는 종류와 관객의 규모에 따라 요금을 부과한다. 현재 회사는 두가지 종류의 연극을 공연한다: 비극과 희극. 공연에 대한 청구서를 제공하는 것 외에도, 회사는 고객에게 “볼륨 크레딧”을 제공한다. 이 크레딧은 향후 공연에서 할인으로 사용할 수 있으며, 고객의 충성도를 높이는 매커니즘이라 할 수 있다.

</aside>