rewrote Planet class so that it will be easier to manipulate