new files and change PrimeGenerator to Class