/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Rectangle {

    double width;
    double height;

  public Rectangle() {
      width = 1;
      height = 1;
  }

public Rectangle(double w, double h) {
    width = w;
    height = h;
}


public double getArea() {
    return (width*height);
}

public double getPerimeter() {
    return ((2*width)+(2*height));
}

public static void main(String[] args) {
    Rectangle oldRectangle = new Rectangle(4, 40);
    Rectangle newRectangle = new Rectangle(3.5, 35.9);

    //In the following you access all the object variables and methods

    System.out.println("Width of Rectangle 1 is: " + oldRectangle.width);
    System.out.println("Height of Rectangle 1 is: " + oldRectangle.height);
    System.out.println("Area of Rectangle 1 is: " + oldRectangle.getArea());
    System.out.println("Perimeter of Rectangle 1 is: " + oldRectangle.getPerimeter());
    System.out.println("Width of Rectangle 1 is: " + newRectangle.width);
    System.out.println("Height of Rectangle 1 is: " + newRectangle.height);
    System.out.println("Area of Rectangle 1 is: " + newRectangle.getArea());
    System.out.println("Perimeter of Rectangle 1 is: " + newRectangle.getPerimeter());

}

}