Slightly simplify list_append program.