added setter, getter of parentNode and another constructor