<h2>Data classes</h2>
<p>Rewrite the following Java code to Kotlin:</p><pre><code data-lang="text/x-java">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;
    }
}
</code></pre>
<p>Then add a modifier <code>data</code> to the resulting class. This annotation means the compiler 