Format samples