buying and selling fully implemented