Pedersen wins in Medicine Hat