built 2 constructors for the Node class