Ancient China had four social classes - landlords, peasants, craftsmen, and merchants. Boys often went to school to learn Confucian philosophy, but education was only available to some. People worshipped ancestors and local gods. Housing for the rich included courtyards, while the poor lived in mud homes. The arts included pottery, bronze vessels, painting, and music tied to philosophy. Many festivals centered around the lunar calendar and honoring ancestors, gods, and historical figures. Science and technology included inventions like paper, the compass, gunpowder, and a hot air balloon. Daily life differed between social classes and sexes.