Constructor, setElement(), prettyPrint() completed