Java MR example