Ledyard wins Class M championship