class Machine {
	private String name;
	private int age;
	
	public Machine(String name) {
		this.name = name;
	}
	
	public Machine(String name, int age) {
		this.name = name;
		this.age = age;
	}
	
	public void getName() {
		System.out.println("Name: " + this.name);
	}
	
	public void getNameAge() {
		System.out.println("Name: " + this.name + " Age: " + this.age);
	}
}

class Robot {
	public void speak(String text) {
		System.out.println(text );
	}
	
	public void jump(int height) {
		System.out.println("Jumping: " + height);
	}
	
	public void move(String direction, double distance) {
		System.out.println("Moving " + distance + " meters in direction " + direction);
	}
}
 
class Person {
	 private String name;
	 private int age;
	 void speak() {
		System.out.println(
			"My name is : " + this.name + " and my age is " + this.age); 
	 }
	 int calculateYearsToRetirement() {
		 int yearsLeft = 65 - this.age;
		 return yearsLeft;
	 }
	 
	 public String getName() {
		 return name;
	 }
	 
	 public int getAge() {
		 return age;
	 }
	 
	 public void setName(String newName) {
		 this.name = newName;
	 }
	 
	 public void setAge(int newAge) {
		 this.age = newAge;
	 }
}

public class JavaClass {
	public static void main(String[] args) {
		Person person = new Person();
//		person.name = "Ian";
//		person.age = 30;
//		System.out.println("Name: " + person.name);
//		System.out.println("Age: " + person.age);
		person.speak(); 
		System.out.println(person.calculateYearsToRetirement());
		person.setName("kosen");
		person.setAge(50);
		System.out.println("Name: " + person.getName());
		System.out.println("Age: " + person.getAge());
		
		
		Robot sam = new Robot();
		sam.speak("Hi I am Sam.");
		sam.jump(89);
		sam.move("West", 12.4);
		
		Machine m_one = new Machine("Koko");
		m_one.getName();
		
		Machine m_two = new Machine("Matope", 90);
		m_two.getNameAge();
		
	}
}

@@ -1,12 +1,286 @@
+class Thing %7B%0A%09public String name;%0A%09public static String description;%0A%09public final static int LUCKY_NUMBER = 66;%0A%09%0A%09public void showName() %7B%0A%09%09System.out.println(this.name + %22 %22 + description);%0A%09%7D%0A%09%0A%09public static void showInfo() %7B%0A%09%09System.out.println(description);%0A%09%7D%0A%7D%0A%0A
 class Machin
@@ -2144,13 +2144,360 @@
 e();%0A%09%09%0A
+%09%09%0A%09%09Thing thing_1 = new Thing();%0A%09%09Thing thing_2 = new Thing();%0A%09%09thing_1.name = %22Bob%22;%0A%09%09thing_2.name = %22Sue%22;%0A%09%09Thing.description = %22I am thing;%22;%0A%09%09System.out.println(thing_1.name);%0A%09%09System.out.println(thing_2.name);%0A%09%09System.out.println(Thing.description);%0A%09%09System.out.println(Thing.LUCKY_NUMBER);%0A%09%09thing_1.showName();%0A%09%09Thing.showInfo();%0A
 %09%7D%0A%7D%0A

Add static variables and methods