Applied the rule of three on Node.