Creating MMD classes and kernels.