setAttribute method added