Unfinished script for ordering samples