added templates for InputFormat and RecordReader