I have written the following code. It all works ok. However, I have been told that it is written in the incorrect format. I am not exactly sure what the correct way of coding this would be. Any help would or direction be much appreciated. 

```
package com.mygdx.gameworld;

import com.badlogic.gdx.Gdx;
import com.mygdx.gameobjects.Egg;
import com.mygdx.gameobjects.Ground;
import com.mygdx.gameobjects.Hero;

public class GameWorld {

Hero hero = new Hero(); //This seems to the bit that causes some amusement.
Egg egg = new Egg(); //This seems to the bit that causes some amusement.
Ground ground = new Ground(); //This seems to the bit that causes some amusement.

public void update(float delta) {
    Gdx.app.log("GameWorld", "update");
    egg.update(delta);
    hero.update(delta);
    ground.update(delta);

}

public Hero getHero() {
    return hero;
}

public Egg getEgg() {
    return egg;
}

public Ground getGround() {
    return ground;
}

}

```