Improve readability of logic block
Improve readability of logic block

0x326/academic-code-portfolio,0x326/academic-code-portfolio,0x326/academic-code-portfolio,0x326/academic-code-portfolio,0x326/academic-code-portfolio,0x326/academic-code-portfolio,0x326/academic-code-portfolio,0x326/academic-code-portfolio,0x326/academic-code-portfolio