Added Materials and bug in Object class fixed