formatted and commented code [ALIGN WORKS]