adding the datastructures for relgram