Fixing greedy method; Adding newlines