creating artisan class and moving common code to execute class