Added regions with comments for the code