added custom kernel class, and example. However there is a strange bug that forces the use of kerne = new Kernel()  in custom class rather than just Kernel kernel.