refactoring by creating a PumpSpark class.