rhodes-samples code