Aspects of the invention are directed to an apparatus comprising flexible tubing and a capsule. The flexible tubing is arranged in a matrix and encapsulates a first material. At the same time, the capsule is disposed within the flexible tubing, encapsulates a second material, and is breakable when subjected to at least one of impact and bending. The first material is segregated from the second material when the capsule is intact, but the first material mixes with the second material when the capsule is broken. Mixing of the first material and the second material forms a third material, the third material being substantially rigid. In one or more embodiments, the apparatus may be used as an orthopedic cast to stabilize and injury.