Astronomy: How Planetary Systems Form