format output
refine the ouput function name
Merge branch 'Omar002-patch-1'
Add comments to explain the solutions