improve Protocol and Extensions examples