adding abstract symbol class with add precedence method