put shuffle inside iterator class constructor method