Made material class inline methods