implemented the interface for adding a new material with a certain reference number