anchor.diff:    // Getter.
     String get pirateName =>
         _firstName.isEmpty ? '' : '$_firstName the $_appellation';
  +  
  +  // Constructor.
  +  PirateName.fromJSON(String jsonString) {
  +    Map storedName = JSON.decode(jsonString);
  +    _firstName = storedName['f'];
  +    _appellation = storedName['a'];
  +  }
  +  
  +  // Another getter.
  +  String get jsonString => JSON.encode({"f": _firstName, "a": _appellation});
   }
positive.code: }
  
  void setBadgeName(PirateName newName) {
    querySelector('#badgeName').text = newName.pirateName;
  }
  
  void generateBadge(Event e) {
  
negative.code: // BSD-style license that can be found in the LICENSE file.
  import 'dart:html';
  import 'dart:math' show Random;
  import 'dart:convert' show JSON;
  
  ButtonElement genButton;
  
  final String TREASURE_KEY = 'pirateName';
  
  void main() {
    // Your app starts here.
    querySelector('#inputName').onInput.listen(updateBadge);
    genButton = querySelector('#generateButton');
    genButton.onClick.listen(generateBadge);
    setBadgeName(getBadgeNameFromStorage());
  }
  
  void updateBadge(Event e) {
  