Pass grex object with constructor