How The Solar System Was Formed