Peloton shares rise 7% as turnaround plan takes hold, losses shrink