Second exercise: material script