Refactored Materials inheritance. Added material_all example