Adding more details to purchase and adding sell function