Formating samples