Clarified code and output.