added comment sections to code markup for extra clarity