small edits to data example code for median