question: is the green sphere the same material as the red cylinder?
#1 return sphere 
#2 return #1 that is green 
#3 return cylinder 
#4 return #3 that is red 
#5 return material of #2 
#6 return material of #4 
#7 return is #5 the  same as #6