A secondary school in Dumfries and Galloway is piloting a new course for the next generation of agricultural leaders.