Defined the kernel