Creating a spawner class