implement the kernel method
Merge pull request #1 from iqbalhasnan/patch-1

implement the kernel method