Material class working so far