Refactor example.hadoop