The protoplanetary disk is an accretion disk that feeds the central star. Initially very hot, the disk later cools in what is known as the T Tauri star stage; here, formation of small dust grains made of rocks and ice is possible. The grains eventually may coagulate into kilometer-sized planetesimals. If the disk is massive enough, the runaway accretions begin, resulting in the rapid—100,000 to 300,000 years—formation of Moon- to Mars-sized planetary embryos. Near the star, the planetary embryos go through a stage of violent mergers, producing a few terrestrial planets. The last stage takes approximately 100 million to a billion years.