Constructing a model of the solar system