added materials in main. set material before drawing objects