add add_material() function in Robot class