my solution to jumptrading contest