added sell functionality