public class Bird {

    public int x;
    public int y;
    public int width;
    public int height;

    public Bird () {
        x = 100;
        y = 300;
        width = 40;
        height = 40;
    }
}

@@ -94,16 +94,40 @@
  height;
+%0A    public int gravity;
 %0A%0A    pu
@@ -221,11 +221,164 @@
 0;%0A    %7D
+%0A%0A    //method that causes bird to fall%0A    public void gravity%7B%0A        gravity = -2;%0A%0A        while (y %3E= 0)%7B%0A            y += gravity;%0A        %7D%0A    %7D
 %0A%7D%0A

Add Bird.java