Improved variable names, comment, and example