Added stock selling logic