Example 2: Creating a Custom Kernel