<human>: Convert the following Java 8 class to Java 17 using a record:

```java
// Java 8 code
public class Person {
  private final String name;
  private final int age;

  public Person(String name, int age) {
    this.name = name;
    this.age = age;
  }

  public String getName() {
    return name;
  }

  public int getAge() {
    return age;
  }
}
```

<bot>: ```java
// Java 17 code using a record
public record Person(String name, int age) {}
```