addded __init__ for node