Code functioning with comments