deleted some unused code and made some progress on the Material class