moved hadoop class to its own file