The stock exchange trading. This part of the code describes only the merchant's side. Using 3-layers model.