Modified Element constructor so that it requires a list of Node objects
rather than a list of node IDs.