The term for classifying and grouping organisms is Taxonomy. It is the science of defining and naming groups of biological organisms on the basis of shared characteristics.
Scientists believe that , about 4.6 billion years ago, the solar system was formed when a cloud of gas and dust in space was disturbed, maybe by the explosion of a nearby star called a supernova.