title: Giving a discount to every 10th customer if a method receives buy requests from concurrent clients
body: <p>I'm writing a simple distributed program. The buy method serves concurrent clients using RMI.
  I want to give a discount to every 10th customer. Ordering of buy requests is based on their time stamps to choose the 10th customer.
  What is the best way to implement the buy method.</p>