Emphasis on the red lines, for a way of writing the implementation without declaring a new variable from the code written. NOTE: I support Ken's approach. Just wanted to make sure the OP understood my earlier comment.