added functions to extract the planets id
proceeded to make use of the modular approach