Add method to Node clase to update next pointer