Extract the the materials used to build beaver dams from the following passage and separate them with a comma.

Context: Beavers need trees and shrubs to use as building material for dams, which restrict flowing water to create a pond for them to live in, and for lodges, which act as shelters and refuges from predators and the elements. Without such material, beavers dig burrows into a bank to live. Dam construction begins in late summer or early fall, and they repair them whenever needed. Beavers can cut down trees up to 15 cm wide in less than 50 minutes. Thicker trees, at 25 cm wide or more, may not fall for hours. When chewing down a tree, beavers switch between biting with the left and right side of the mouth. Tree branches are then cut and carried to their destination with the powerful jaw and neck muscles. Other building materials, like mud and rocks, are held by the forelimbs and tucked between the chin and chest.

Answer: Beavers use the following materials to build their dams: trees, shrubs, mud, rocks.