a judge directs a jury