The problem is that when you add a planet, it is storing the values locally. When you try to view the data, you're creating a new instance of that object. To solve this, create a Planets object...