added id attribute, as well as getId method.