I am currently trying to teach myself to code in Java and I am using eclipse and I had a tutorial for creating pong but some how it has gone missing. The only part I am having trouble with is finishing the ball class. I have got it to render and appears correctly in the window but doesn't actually do anything it simply remains stationary. This is because I have no idea what code I need and all the google searches have resulted in nothing but frustration at code that does not work.

This is all I have in the ball class so far.

```
import java.awt.Color;
import java.awt.Graphics;

public class Ball extends Entity {

public Ball(int x, int y, Color color) {
    super(x, y, color);
    this.width = 15;
    this.height = 15;
    int yspeed = 1;
    int xspeed = 2;
}

public void render( Graphics g ) {
    super.render( g );
}

public void update() {
    if (y <= 0) {
        y = 0;
    }

    if (y >= window.HEIGHT - height - 32 ) {
        y = window.HEIGHT - height -32;
    }
}

```

Any advice would be greatly appreciated.