Pushed array and stream generator in a different class