package com.google.step.snippet.data;

public final class Card {
  private String title;
  private String code;
  private String link;
  private String description;

  public Card(String title, String code, String link, String description) {
    this.title = title;
    this.code = code;
    this.link = link;
    this.description = description;
  }

  public String getTitle() {
    return title;
  }

  public String getCode() {
    return code;
  }

  public String getLink() {
    return link;
  }

  public String getDescription() {
    return description;
  }
}

package com.google.step.snippet.data;

public final class Card {
  private final String title;
  private final String code;
  private final String link;
  private final String description;

  public Card(String title, String code, String link, String description) {
    this.title = title;
    this.code = code;
    this.link = link;
    this.description = description;
  }

  public String getTitle() {
    return title;
  }

  public String getCode() {
    return code;
  }

  public String getLink() {
    return link;
  }

  public String getDescription() {
    return description;
  }
}

change field in card class to be final