Can you create a realistic physical solarsystem?

Is it possible to create a realistic working model of a solarsystem bassed on physics? Can this be done by placing the physic laws and formulas in the script? This is not for a game, but for a school project, so it needs to be realistic.