writing t/samples.t