Refactoring.
Implementing material.clj.