updated constructor in Planet.java