Adding stdin fileinput code