Early Stages of Planet Formation