add abstract method for getType in Element.cs