created EIG data structure. 1st stage implemented