accused he had the right to a jury trial