abstract declaration of accept method has been added to abstract class Node