Worked on Material class, have a look at it, because I'm not 100% sure
whether this is the way we should do it yet.