In contrast to nails, claws are typically curved ventrally (downwards in animals) and compressed sideways. They serve a multitude of functionsincluding climbing, digging, and fightingand have undergone numerous adaptive changes in different animal taxa. Claws are pointed at their ends and are composed of two layers: a thick, deep layer and a superficial, hardened layer which serves a protective function. The underlying bone is a virtual mold of the overlying horny structure and therefore has the same shape as the claw or nail. Compared to claws, nails are flat, less curved, and do not extend far beyond the tip of the digits. The ends of the nails usually consist only of the "superficial", hardened layer and are not pointed like claws.