Use -> operator rather than keeping reference when iterating over planets.