The epidermis is typically 10 to 30 cells thick; its main function is to provide a waterproof layer. What is the dermis mainly consist of?