Update Element.java

Separate relationship and class in element init.