Adding getter/setter/has method for elements