How the Solar System was Made