Adding buy.sell function