Implementing the Trade and Trades classes.