added worker class under ruby file with a method to test the job