Exhibit B to Stock Purchase Agreement REGISTRATION RIGHTS AGREEMENT