The Formation of the Solar System