Clarified example code with comments