publicclass Trade ...{ publicstaticvoid main(String[] args) ...{ Product house =new Product("house", "House Cost 40WangYuan", 400000); Product car =new Product("car", "Car Cost 5WangYuan", 50000); Person tim =new Person("Tim"); Person allison =new Person("Allison"); tim.setRole(new Buyer(500000)); allison.setRole(new Seller()); if (!allison.satisfied(house, 400000)) ...{ System.out.println(house.getDescription() +" offer of 400,000 is no good for the seller"); } if (!tim.satisfied(house, 600000)) ...{ System.out.println(house.getDescription() +" offer of 600,000 is no good for the buyer"); } if (tim.satisfied(house, 450000)) ...{ System.out.println(house.getDescription() +" they both agree with 450000"); } allison.setRole(new Buyer(70000)); if (allison.satisfied(car, 60000)) ...{ System.out.println("As a buyer she can afford the "+ car.getDescription()); } } }