The integumentary system comprises the skin and its appendages. It has three main layers - the epidermis, dermis and hypodermis. The epidermis is the top layer and contains keratinocytes that produce keratin, protecting the body. The dermis lies beneath and contains collagen, elastin and connective tissue that provide flexibility and strength. The innermost hypodermis stores fat. Key functions of the integumentary system are to protect the body, regulate temperature and moisture, and sense touch. Diseases can include sunburn, skin cancer, infections and rashes.