Implemented sell and buy operations