added trading functionality