A.lines.flatMap(_.split”””)).map(word=>(word,1)).reduce(_+_).print()
	B.lines.flatMap(_.split”””)).map(word=>(word,word.length())).reduceByKey(_+_).print()
	C.lines.flatMap(_.split”””)).map(word=>(word,1)).reduceByKey(_+_).print()
	D.lines.flatMap(_.split”””)).flatMap(word=>(word,1)).groupByKey(_+_).print()
 
                            