New model pull request for code review

This function could be DRYed up with only one loop instead of 2 and figuring out whether the planets should be removed or added.