The Fracturing Behavior in Layered Rocks