Because cast iron is comparatively brittle, it is not suitable for purposes where a sharp edge or flexibility is required. It is strong under compression, but not under tension. Cast iron was invented in China in the 5th century BC and poured into molds to make ploughshares and pots as well as weapons and pagodas. Although steel was more desirable, cast iron was cheaper and thus was more commonly used for implements in ancient China, while wrought iron or steel was used for weapons. The Chinese developed a method of annealing cast iron by keeping hot castings in an oxidizing atmosphere for a week or longer in order to burn off some carbon near the surface in order to keep the surface layer from being too brittle.