Make generateData() static