constructor for node and skeleton for task b
resolved conflict