added a constructor to symbol assingment to intialise data structures