/*
	class Person and class Main are in the same project
*/


//class Person saved as Person.java
public class Person {
    private int age;

    //accessor
    public void setAge(int myAge){
        age = myAge;
    }

    //mutator
    public int getAge(){
        return age;
    }
}

// class Main saved as Main.java
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	System.out.println("Hello, World!");

	Scanner scanner = new Scanner(System.in);
	int tempValue = scanner.nextInt();

	Person me = new Person(); // me is a reference variable; a new Person is constructed.
	me.setAge(tempValue);
	System.out.println("I am " + me.getAge() + " years old.");

	Person myBrother = me; // myBrother and me refer to the same Person
	System.out.println("My brother is " + myBrother.getAge() + " years old.");
    }
}